#include "LineSeg.h"
#include <windows.h>
#include <GL/gl.h>

void LineSeg::Draw()
{
    GLfloat oldLineWidth = 0;
    glGetFloatv(GL_LINE_WIDTH, &oldLineWidth);

    glLineWidth(2);
    glBegin(GL_LINES);
        glVertex3f(m_start.x(), m_start.y(), m_start.z());
        glVertex3f(m_end.x(), m_end.y(), m_end.z());
    glEnd();

    glLineWidth(oldLineWidth);
}
